QT = core

CONFIG += c++17 cmdline

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += D:\code\3rd\ffmpeg-5.1.2-full_build-shared\include
INCLUDEPATH += D:\code\3rd\sdl\include\sdl2

LIBS += -LD:/code/3rd/ffmpeg-5.1.2-full_build-shared/lib \
                  -lavcodec -lavdevice -lavfilter -lavformat -lavutil -lpostproc \
                  -lswresample -lswscale

LIBS += $$PWD/../../3rd/sdl/lib/sdl2/SDL2.lib\
        $$PWD/../../3rd/sdl/lib/sdl2/SDL2main.lib\
        $$PWD/../../3rd/sdl/lib/sdl2/SDL2test.lib

LIBS += -L$$PWD/../../3rd/sdl/lib/sdl2 -lSDL2 \
#        -L$$PWD/../3rd/lib/sdl_plug/x64 -lSDL2_image

SOURCES += \
        audiooutput.cpp \
        avframequeue.cpp \
        avpacketqueue.cpp \
        avsync.cpp \
        decodethread.cpp \
        demuxthread.cpp \
        main.cpp \
        videooutput.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    audiooutput.h \
    avframequeue.h \
    avpacketqueue.h \
    avsync.h \
    decodethread.h \
    demuxthread.h \
    queue.h \
    thread.h \
    videooutput.h
